package per.jdz.demo.utils;

import com.alibaba.excel.converters.Converter;
import com.alibaba.excel.converters.ReadConverterContext;

/**
 * @author Jdz
 * @date 2025/1/8
 */
public class StringConverter implements Converter<String> {
    @Override
    public String convertToJavaData(ReadConverterContext<?> context) {
        String value = context.getReadCellData().getStringValue();
        if ("-".equals(value)) {
            return null;
        }
        return value;
    }
}
